package com.edu.whty.service.impl;

import com.edu.whty.dao.JobMonitorDao;
import com.edu.whty.entity.base.JobMonitor;
import com.edu.whty.service.JobMonitorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * TODO
 *
 * @author luyao
 * @explain
 * @date 2021/5/29
 */
@Component("JobMonitorService")
public class JobMonitorServiceImpl implements JobMonitorService {

    @Autowired
    private JobMonitorDao jobMonitorDao;

    @Override
    public int addJobMonitor(JobMonitor jobMonitor) {
        return jobMonitorDao.addJobMonitor(jobMonitor);
    }

    @Override
    public int updateJobMonitor(JobMonitor jobMonitor) {
        return jobMonitorDao.updateJobMonitor(jobMonitor);
    }

    @Override
    public JobMonitor getJobMonitor(String jobMonitorId) {
        return jobMonitorDao.selectJobMonitor(jobMonitorId);
    }

    @Override
    public int addJxzsJobMonitor(JobMonitor jobMonitor) {
        return jobMonitorDao.addJxzsJobMonitor(jobMonitor);
    }

    @Override
    public int updateJxzsJobMonitor(JobMonitor jobMonitor) {
        return jobMonitorDao.updateJxzsJobMonitor(jobMonitor);
    }

    @Override
    public JobMonitor getJxzsJobMonitor(String userIds) {
        return jobMonitorDao.selectJxzsJobMonitor(userIds);
    }

    @Override
    public List<JobMonitor> queryJxzsJobMonitorList(JobMonitor jobMonitor) {
        return jobMonitorDao.selectJxzsJobMonitorList(jobMonitor);
    }
}
